import React from 'react'
import { withRouter } from 'react-router'
import { NavBar,Icon} from  'antd-mobile'
import GoBack from './GoBack'
 function Header(props) {
     let {title,back} = props
    return (
        <div>
             <NavBar
                    mode="dark"
                    icon={back?<GoBack></GoBack>:null}
                >{title}</NavBar>
        </div>
    )
}
export default withRouter(Header)
